﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EasyTrader
{
    public class OptBendSysVar
    {
        public static bool LastSignalFired = false;

        public static bool EnablePerLossLiquid = false;
        public static bool EnablePerProfitLiquid = false;
        public static double PerLossLiquidValue = 60;
        public static double PerProfitLiquidValue = 35;

        public static bool EnableTotalLossLiquid = false;
        public static bool EnableTotalProfitLiquid = false;
        public static double TotalLossLiquidValue = 75;
        public static double TotalProfitLiquidValue = 15;

        public static int FirstSignalType = GlobalVar.FirstSigByHogaAngle;
        public static double LossMargin = 0.05;
        public static double MinTurnHeight = 0.4;
        public static int MinTurnHogaDelta = 200;
        public static int OrderStartHour = 9;
        public static int OrderStartMin = 0;
        public static int OrderEndHour = 14;
        public static int OrderEndMin = 58;
        public static int SysStartState = 1;
        public static int SysEndState = 10;
        public static int PerOrderAmount = 1;
        public static int SysStartHour = 9;
        public static int SysStartMin = 0;
        public static int SysEndHour = 14;
        public static int SysEndMin = 58;
        public static bool AutoOrder = false;
        public static double MinSquareOccDelta = 0.1;

        public static bool EnterByClose = true;
        public static bool LiquidByClose = false;

        public static double OuterMargin = 0.05;
        public static double InnerMargin = 0.01;

        public static double OpenOuterMargin = 0.15;
        public static double OpenInnerMargin = 0.15;

        public static bool AllOptChartDataDownloaded = false;

        public static double TotalProfitStepLiquidVal = StepLiquidVal;
        public static double StepLiquidVal = 50;
        public static bool EnableTotalProfitStepLiquid = false;
        public static int PerLiquidOrderAmount = 1;

        public static bool EnableStateCountStepLiquid = false;
        public static int StepLiquidStateCount = 1;

        public static bool EnableProfitTrailStop = false;
        public static double MaxProfit = 0.0;
        public static double MaxProfitLiquidVal = 25;
        public static double MinProfit = 50;

        public static int OrderTarget = GlobalVar.OrderTargetFuture;

        public static int FirstMaxOrderAmount = 3;

        public static double ValMargin = 0.05;

        public static double LimitMargin = 0.1;
    }
}
